<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>获取/设置readline内部的各个变量</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.readline-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">readline_info</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">readline_info</span> &mdash; <span class="dc-title">获取/设置readline内部的各个变量</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.readline-info-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>readline_info</strong></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$varname</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$newvalue</code></span>
  ]] ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>

  <p class="para rdfs-comment">
   获取/设置readline内部的各个变量.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.readline-info-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">varname</code></dt>

     <dd>

      <p class="para">
       变量名.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">newvalue</code></dt>

     <dd>

      <p class="para">
       如果提供，将被设置成这个值.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.readline-info-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   如果调用时没有参数，这个函数将返回一个包括了所有已采用的readline设置的数组.
   数组元素将索引是以下这些值：done, end, erase_empty_line,
   library_version, line_buffer, mark, pending_input, point, prompt,
   readline_name, and terminal_name.
  </p>
  <p class="para">
   如果调用是提供了一个或两个参数，原来的值将被返回.
  </p>
 </div>


</div></div></div></body></html>